/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const noticeConfigRouter = {
  path: '/notice',
  component: Layout,
  redirect: '/notice/noticeConfig',
  name: 'notice',
  meta: {
    title: '系统公告配置',
    icon: 'taskConfig',
    roles: 'NORMAL_ADMIN'
  },
  children: [
    {
      path: 'noticeConfig',
      component: () => import('@/views/notice/noticeConfig'),
      name: 'noticeConfig',
      meta: {
        title: '公告配置',
        icon: 'taskConfig',
        roles: 'NORMAL_ADMIN'
      }
    },
    {
      path: 'noticeList',
      component: () => import('@/views/notice/noticeList'),
      name: 'noticeList',
      meta: {
        title: '轮播图管理',
        icon: 'taskConfig',
        roles: 'NORMAL_ADMIN'
      }
    }
  ]
}

export default noticeConfigRouter
